import { CSSProperties } from "react";

const CustomIcon = ({ str,style }: { str: string | any;style?: CSSProperties }) => {
    if (typeof str !== 'string') {
        return str
    }
    return <i style={{...style}} className={`ri-${str}`} />
}

export default CustomIcon